/*
 * font.h
 *
 *  Created on: Apr 2, 2012
 *      Author: Tri_D
 */

#ifndef FONT_H_
#define FONT_H_

#include "main header.h"


#define SEG7_A	0x40
#define SEG7_B	0x20
#define SEG7_C	0x10
#define SEG7_D	0x08
#define SEG7_E	0x04
#define SEG7_F	0x02
#define SEG7_G	0x01

#define SEG_A	0x2000
#define SEG_B	0x1000
#define SEG_C	0x0800
#define SEG_D	0x0400
#define SEG_E	0x0200
#define SEG_F	0x0100
#define SEG_G	0x0080
#define SEG_H	0x0040
#define SEG_I	0x0020
#define SEG_J 	0x0010
#define SEG_K	0x0008
#define SEG_L	0x0004
#define SEG_M	0x0002
#define SEG_N	0x0001

#define UNIT_A9			0x20
#define	UNIT_A10 		0x10
#define	UNIT_A11		0x08
#define	UNIT_A12		0x04
#define	UNIT_A13		0x02
#define	UNIT_A14		0x01

#define	DOWN_ARROW1		0x1000
#define	DOWN_ARROW2		0x0800
#define	DOWN_ARROW3		0x0400
#define	DOWN_ARROW4		0x0200
#define	DOWN_ARROW5		0x0100
#define	DOWN_ARROW6		0x0080
#define DOWN_ARROW7		0x0040
#define	DOWN_ARROW8		0x0020
#define	CAL_LED			0x0010
#define	ZERO_LED		0x0008
#define	STABLE_LED		0x0004
#define	LEFT_COLON		0x0002
#define	RIGHT_COLON		0x0001

extern const uint8_t FONT_S7[95];
extern const uint16_t FONT_S14[95];
extern const uint8_t FONT_UNIT[8];

#endif /* FONT_H_ */
